Hi everyone!
Before we can connect our MCP server to Claude Desktop, we need to configure a few things.
This setup tells Claude where to find your Python installation and how to connect to your MCP server.
Let's go through each step to make sure you're ready.
- Open your terminal or command prompt
- Run: which python (macOS/Linux) or where python (Windows)
- Copy the full path, you'll need this for Claude app config file.
For macOS
- Navigate to: ~/Library/Application Support/Claude
- Create this folder if it doesn't exist
For Windows
- Navigate to: %APPDATA%\Claude
- Create this folder if it doesn't exist
For Linux
- Navigate to: ~/.config/Claude
- Create this folder if it doesn't exist
- In the directory from Step 3, create a file named: claude_desktop_config.json - Add the following configuration:
{
"mcpServers": {
"contentful": {
"command": "[YOUR_PYTHON_PATH]",
"args": [
"[FULL_PATH_TO]/contentful_mcp.py"
],
"env": {
"CONTENTFUL_CMA_TOKEN": "YOUR_TOKEN_HERE",
"CONTENTFUL_SPACE_ID": "YOUR_SPACE_ID_HERE"
}
}
}
}Replace [YOUR_PYTHON_PATH] with the path from Step 2
Replace [FULL_PATH_TO]/contentful_mcp.py with the full path to your MCP server file
Add your Contentful Management API token
Add your Contentful Space ID
- Close your Claude app completely (not just minimize)
- Re-open Claude Desktop
- This is needed for the local MCP config to take effect
- Check Settings → Developer to verify your MCP server appears.